<%@page contentType="text/html; charset=UTF-8" language="java" import="com.unicomcz.login.UserInfo"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<%
UserInfo userInfo=(UserInfo)session.getAttribute("USER_INFO");
if ((userInfo==null)||(!userInfo.isLogin())){
	response.sendRedirect("/login.jsp");	
}
%>
<title></title>
<script language=JavaScript>
function logout(){
	if (confirm("您确定要退出代理商自助系统吗？"))
	top.location = "/system/Logout.do";
	return false;
}
function changeDept(){
	parent.location.href='/system/changeDept.do?departId='+document.getElementById('departId').value
}
</script>
<base target="main">
<link href="images/skin.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" height="64" border="0" cellpadding="0" cellspacing="0" class="admin_topbg">
  <tr>
    <td width="61%" height="64"><img src="images/logo.jpg" width="262" height="64"></td>
    <td width="39%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="44%" height="38" class="admin_txt"><b><%=userInfo.getUserName()%></b> 您好,感谢登陆使用！</td>
        <td width="30%" height="38">
           <s:if test="#session.ALLDEPT.size>0">  
           
             <select id="departId" name="departId" onChange="changeDept();">
               <s:iterator value="#session.ALLDEPT">
                 <option value='<s:property value="departId"/>'><s:property value="departName"/> </option>
               </s:iterator>
             </select>
             <script>
			   document.getElementById('departId').value='<%=userInfo.getDepartId()%>';
			 </script>
          </s:if>
		</td>
        <td width="22%"><a href="#" target="_self" onClick="logout();"><img src="/images/out.gif" alt="安全退出" width="46" height="20" border="0"></a></td>
        <td width="4%">&nbsp;</td>
      </tr>
      <tr>
        <td height="19" colspan="4" style="font-size:12px;color:red;">总经理热线：18676800130     总经理邮箱：gd-czzjlxx@chinaunicom.cn</td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
